package com.jiazhong.cloud.sentinel.consumer.exception;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class BlockExceptionPlanB {
    public static String abc(int num, BlockException e) {
        log.info("执行了planB方案");
        return "This is SentinelConsumerController`planB";
    }

    public static String ccc(int num,Throwable e) {
        return "This is SentinelConsumerController`planC";
    }

}
